package com.infoholdcity.common.common;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class QueryConditionsReqVo {


    /**
     * saveName :
     * matchType :
     * data : [{"fieldName":"field1","fileldValue":"字符串类型数据","rule":"eq","componentType":"input"},{"fieldName":"field5","fileldValue":"1","rule":"eq","componentType":"select","options":[{"value":"1","text":"男"},{"value":"2","text":"女"}]}]
     */

    private String saveName;
    private String matchType;
    private List<DataBean> data;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * fieldName : field1
         * fileldValue : 字符串类型数据
         * rule : eq
         * componentType : input
         * options : [{"value":"1","text":"男"},{"value":"2","text":"女"}]
         */

        private String fieldName;
        private String fileldValue;
        private String rule;
        private String componentType;
        private List<OptionsBean> options;

        @NoArgsConstructor
        @Data
        public static class OptionsBean {
            /**
             * value : 1
             * text : 男
             */

            private String value;
            private String text;
        }
    }
}
